<div class="floatL leftBlock" >
    <?php if ($lastReviews) : ?>
        <h3>Новые отзывы</h3><br />
	<?php foreach ($lastReviews as $review) : ?>
	    <div class="recordRow">
		<img src="<?php echo Yii::app()->theme->baseUrl ?>/images/userpics/1.jpg" alt="lol" class="floatL userPic"/>
		<a href="<?php echo CHtml::normalizeUrl($this->createUrl('review/view', array('id' => $review->id, 'url' => $review->name))); ?>" class="recordTitle"><?php echo $review->title; ?></a><br />
		<?php echo CTruncate::trunc($review->content); ?>	    
		<br />
		<div class="clear padTop10"></div>
		<div class="rowInfo overHidden">			    
		    <div class="floatR">
			<div class="floatL margRight10"><i>Категория:</i> <a href="<?php $this->createUrl('/category/view', array('name' => $review->category->name)) ?>"><i><?php echo $review->category->title; ?></i></a></div>			
			<div class="floatL margRight10"><i>Оценка: <font color="<?php echo ($review->rating >= 3 ? "green" : "red"); ?>"><?php echo $review->rating; ?></font></i></div>			
			<div class="floatL">		    
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/photo_marker<?php echo ($review->has_image ? '' : '_unactive'); ?>.png" class="marker "/>
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/video_marker<?php echo ($review->has_video ? '' : '_unactive'); ?>.png" class="marker "/>
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/map_marker<?php echo ($review->has_map ? '' : '_unactive'); ?>.png" class="marker "/>									
			</div>
		    </div>

		</div>			
	    </div>	
	    <hr/>
	<?php endforeach; ?>
    <?php endif; ?>
    <div class="clear"></div>
    <div class="padTop10"></div>
    <div class="floatR"><a href="<?php echo $this->createUrl('review/list', array('type' => 'new'));?>" class="btn">посмотреть остальные</a></div>
</div>
<div class="rightBlock margLeft100 floatL">
    <div class="floatL firstBlock">
	<h3>Положительные ответы на отзывы</h3><br />
	<?php if ($goodReview) : ?>
	<?php foreach($goodReview as $review) : ?>
	<div class="recordRow">
	    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/userpics/1.jpg" class="floatL userPic"/>
	    <a href="<?php echo CHtml::normalizeUrl($this->createUrl('review/view', array('id' => $review->record->id, 'url' => $review->record->name))); ?>" class="recordTitle"><?php echo $review->record->title; ?></a><br />
	    <?php echo CTruncate::trunc($review->content); ?>	
	    <br />
	    <div class="clear padTop10"></div>
	    <div class="rowInfo">
		<span class="floatR">
		    <div class="starRatingFx rt<?php echo intval($review->rating); ?>"></div>
		</span>
	    </div>			
	</div>	
	<hr/>
	<?php endforeach; ?>
	<?php endif; ?>	
	<div class="padTop10"></div>
	<div class="floatR"><a href="<?php echo $this->createUrl('review/list', array('type' => 'good'));?>" class="btn">посмотреть остальные</a></div>
    </div>
    <div class="floatL secondBlock" >
	<h3>Отрицательные ответы на отзывы</h3><br />    	
	<?php if ($badReview) : ?>
	<?php foreach($badReview as $review) : ?>
	<div class="recordRow">
	    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/userpics/1.jpg" class="floatL userPic"/>
	    <a href="<?php echo CHtml::normalizeUrl($this->createUrl('review/view', array('id' => $review->record->id, 'url' => $review->record->name))); ?>" class="recordTitle"><?php echo $review->record->title; ?></a><br />
	    <?php echo CTruncate::trunc($review->content); ?>	
	    <br />
	    <div class="clear padTop10"></div>
	    <div class="rowInfo">
		<span class="floatR">
		    <div class="starRatingFx rt<?php echo intval($review->rating); ?>"></div>
		</span>
	    </div>			
	</div>	
	<hr/>
	<?php endforeach; ?>
	<?php endif; ?>	
	<div class="padTop10"></div>
	<div class="floatR"><a href="<?php echo $this->createUrl('review/list', array('type' => 'bad'));?>" class="btn">посмотреть остальные</a></div>
    </div>
</div>